package com.softtown.modules.workflow.service;

import com.softtown.common.service.BaseService;
import com.softtown.modules.workflow.entity.SwfProcInstEntity;

/**
 * @author: Dingyayong
 * @Date: 2019/8/21 19:46
 * @Description:
 */
public interface SwfProcInstService extends BaseService<SwfProcInstEntity> {
    /**
     * 通过公司id 和申请单id找出对应的唯一流程实例
     * @param  compId applId
     * @return  SwfProcInstEntity
     * @author Dingyayong
     * @date 2019/8/22 10:08
     */
    SwfProcInstEntity getSwfProcInst( Long compId ,Long applId);

    /**
     * 通过id找出对应的唯一流程实例
     *
     * @param
     * @return
     * @author Dingyayong
     * @date 2019/8/26 14:49
     */
    SwfProcInstEntity getSwfProcInstById(Long id);

    /**
     * 更新流程实例
     *
     * @param
     * @return
     * @author Dingyayong
     * @date 2019/8/26 14:49
     */
    void updateSwfProcInst(SwfProcInstEntity swfProcInstEntity);


}
